CX_ITEM_PATTERN
Class hierarchy
- CX_CLASS
- CX_SIMPLE
- CX_TERMED
- CX_EXPANDABLE
- CX_STRUCTURED
- CX_BUSINESS_OBJECT
- CX_REAL_OBJECT
- CX_ITEM
- CX_ITEM_PATTERN
- CX_ITEM
- CX_REAL_OBJECT
- CX_BUSINESS_OBJECT
- CX_STRUCTURED
- CX_EXPANDABLE
- CX_TERMED
- CX_SIMPLE
Description:
Variant parts. Variant parts are parts that are combined to one part, which differ in some characteristics, but actually all represent the same part. A good example of this is the screw. There is only one variant part for screws. In the characteristics (properties) of the screw is now entered, what makes the different screws different, e.g. the thread pitch, the length, the thread type, the diameter, the material etc.
So we have only one part with different characteristics.
Code example:
BeginTXN [ testTxn ] PlugSpace testTxn Get(itemPointer.Item())
Result: the subpart, if there is one in the variant part, that corresponds exactly to the characteristics of the attributes that the testTxn contains. If no subpart was found, the variant part is returned.
If there are no attributes for the determination, an error is returned. This error can be avoided by either calling the function ItemWeak instead of Item, or by registering a message that is triggered when characteristics are missing (SetBindMessage).
The following diagram shows how variant parts, distinct subparts and their attributes are usually connected in the ClassiX system (using the global attribute "WIDTH" as an example):
Function | MA* | Parameters | Return | Brief description |
---|---|---|---|---|
AttributeSetValuesID | STRING | String with name/value pairs of attributes | ||
AttributesID | STRING | Names of all attributes | ||
AttributesUnplugged | COLLECTION | Find unplugged attributes | ||
Item | OBJECT | The Item() function on the variant part checks whether the values of the characteristics in the plug space correspond exactly to the values of a subpart. If yes, the determined subpart is returned, otherwise the variant part. If the characteristics are missing for the determination, an error is displayed. This error can be avoided by either calling the function ItemWeak instead of Item, or by registering a message that is triggered when characteristics are missing (SetBindMessage) | ||
PluggedID | STRING | "uniqueID" and names of all attributes | ||
SanityCheck | INTEGER | Check for consistency of the object | ||
UniqueID | STRING | Content of the fixed data field "uniqueID" and the names of all attributes | ||
AccountOwner | STRING | INTEGER | ? | |
AccountOwnerMA | * | STRING | ? | |
AllocatedObject | STRING, INTEGER | OBJECT | Returns allocated object of the desired type | |
AllocatedObjectMA | * | STRING, INTEGER | Access to allocated objects of a desired type | |
Allocation | STRING, INTEGER | OBJECT | Returns allocation of the desired type | |
AllocationMA | * | STRING, INTEGER | Access to allocation of the desired type | |
Allocations | COLLECTION | Allocations not related to this object | ||
Allocators | COLLECTION | Allocations relating to this object | ||
Asset | OBJECT | Delivers billing object "fixed asset" (CX_ASSET) | ||
Attributes | INTEGER | OBJECT | n. Attribute | |
BillOfMaterial | OBJECT | Returns allocation "bill of material" (CX_BILL_OF_MATERIAL) from the assigned product | ||
CastedStructureByCondition | STRING | OBJECT | ||
ClassFilter | STRING, INTEGER | OBJECT | This object, if it corresponds to a certain class | |
ClearingObject | STRING, INTEGER | OBJECT | First assignment to settlement objects | |
ClearingObjectMA | * | STRING, INTEGER | Assignments to settlement objects | |
ConditionedFilter | STRING, OBJECT | OBJECT | If a formula is executed, all objects are searched sequentially in the plug space for the data field searched for. If there are not only documents in the plug space, for example a data member "transaction", but also simple values as objects, then the evaluation of the formula would bring an error, because the simple value would also try to read the data field "transaction", which it does not have. Here the solution is to put the ConditionedFilter in front of the desired data field: ConditionedFilter("inherited(this, CX_LINK_TXN)").FirstSuccessorByCondition("type(TopTransaction())=CX_ITEM_DEMAND") | |
ConditionedFilter2 | OBJECT | OBJECT | ||
ConnectStateStructure | OBJECT, STRING | Connect to the status structure | ||
Deleted | INTEGER | Object marked as deleted? | ||
Description | STRING | Name of this object | ||
EvaluateTotalMonitors | STRING, INTEGERSTRING | OBJECT | ? | |
ForceMonitor | STRING | OBJECT | Searches for the specified monitor on the part and creates it even if it was not found | |
GetDomain | INTEGER | Domain of this object | ||
GetSiblings | COLLECTION | All siblings of this object | ||
GetSiblings2 | COLLECTION | All siblings of this object | ||
GetSlotEntries | VECTOR<object>>/ob | Return of internal information about slots | ||
GetStructure | OBJECT | OBJECT | Search for a subordinate structure that belongs to the same hierarchy | |
InsertMonitor | OBJECT | ? | ||
ItemWeak | OBJECT | |||
JobSchedule | OBJECT | Returns allocation "routing" (CX_JOB_SCHEDULE) from the assigned product | ||
LastUpdate | OBJECT | Date of the last write access | ||
LastUser | INTEGER | User who last had write access to the object | ||
link | OBJECT | Add this object to the list of objects with validity | ||
Monitor | STRING | OBJECT | Returns the monitor of the part whose class name was passed as string | |
NextValidObject | OBJECT | Subsequent validity object in time | ||
PreviousValidObject | OBJECT | Previous validity object in time | ||
Product | OBJECT | Delivers billing object "production article" (CX_PRODUCT) | ||
Product Allocation | STRING, INTEGER | OBJECT | Returns allocation of the desired type from the assigned product | |
PurchaseItem | OBJECT | Delivers billing object "Order item" (CX_PURCHASE_ITEM) | ||
RemoveMonitor | OBJECT, OBJECT | Removes the connection to a monitor from an object | ||
RemoveStateStructure | STRING | Find status structure by uniqueID and disconnect | ||
RestrictedValidity | * | Area of validity restricted? | ||
SalesItem | OBJECT | Delivers billing object "sales item" (CX_SALES_ITEM) | ||
SetDomain | INTEGER, INTEGER | Set domain | ||
SetStructure | OBJECT | Ensures that a structure becomes a subordinate structure | ||
ShortName | STRING | Short name of this object | ||
Siblings | * | Objects with validity | ||
SpanDateValidity | * | Period of validity | ||
StateStructure | STRING | OBJECT | Find status structure after uniqueID (STRING) (not wrapped) | |
StateStructureWrapper | STRING | OBJECT | Find status structure by uniqueID | |
string | INTEGER | CX_STRING | Returns the string representation of the object | |
StructureByCondition | STRING | OBJECT | Subordinate structure with a specific condition | |
StructureByID | STRING | OBJECT | Subordinate structure with a certain unique key | |
StructureByIDMA | * | STRING | Subordinate structures with a certain unique key | |
StructureByType | STRING, INTEGER | OBJECT | Subordinate structure of a certain type | |
TestDataAccess | STRING, STRING | |||
TopItem | OBJECT | Top item(pattern) in the parts hierarchy | ||
TotalMonitors | STRING, INTEGERSTRING | OBJECT | ? | |
TriggeredStateStructure | STRING | OBJECT | Attempts to advance the status structure and returns the new status structure (not wrapped) | |
TriggeredStateStructureWrapper | STRING | OBJECT | Attempts to advance the status structure and returns the new status structure (wrapped) | |
TriggerStateStructures | Switches all status structures forward | |||
Unlink | Remove this object from the list of objects with validity | |||
Unlink2 | Remove this object from the list of objects with validity | |||
Valid | OBJECT | INTEGER | Check validity | |
ValidSince | OBJECT | Start of validity period | ||
ValidToday | INTEGER | Valid today? | ||
ValidUntil | OBJECT | End of validity period | ||
VerifySiblings | INTEGER | Check ring of exchange objects |
* MA = Member Access function,
grey background = inherited function
Data field | Type | Reference class | I* | Brief description |
---|---|---|---|---|
items | REL_M1 | CX_ITEM | Connection to things | |
allocations | REL_MN | CX_EXPANDABLE | ? | |
attributeSet | POINTER | CX_ATTRIBUTE_SET | Attribute table (characteristics), which explains slots in more detail | |
clearingObjects | REL_MN | CX_CLEARING_OBJECT | Payroll accounting areas | |
generalTerms | REL_1M | CX_GENERAL_TERMS | ? | |
monitors | REL_MN | CX_MONITOR | ? | |
pattern | REL_1M | CX_ITEM_PATTERN | (Higher-level) pattern | |
structures | REL_MN | CX_EXPANDABLE | Organisational Structures | |
uniqueID | STRING | * | Unique key | |
validity | POINTER | CX_VALIDITY | Validity period of the object |
*I = Indexable data field,
grey background = inherited data field
Module | Brief description |
---|---|